﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ClassLibrary.BLL;

namespace Web
{
    public partial class KetQuaTimKiem : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
        
            BLLSanPham sanpham = new BLLSanPham(Request.QueryString["tensp"],Convert.ToInt32(Request.QueryString["idloaisanpham"]),Request.QueryString["giasp"].ToString());
            //phan trang
            CollectionPager1.PageSize = 6;//so sp 1 trang
            CollectionPager1.DataSource = sanpham.Tim();
            CollectionPager1.BindToControl = DataList1;

            DataList1.DataSource = CollectionPager1.DataSourcePaged;
        }
    }
}
